package xxx.core.client;

import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.GET;
import retrofit2.http.Query;
import xxx.common.retrofit.ConverterFormat;
import xxx.common.retrofit.JsonOrXmlConverterFactory;
import xxx.common.retrofit.RequestConverter;

/**
 * @author yuanchengman
 * @date 2021-08-16
 */
@RetrofitClient(baseUrl = "${3api.baseUrl:http://localhost:8080/}", converterFactories = {JsonOrXmlConverterFactory.class})
public interface ThirdApi {
    @GET("get")
    @RequestConverter(format = ConverterFormat.JSON)
    String get(@Query("id") Long id);
}
